import request from '@/utils/request'
import config from '@/utils/config'
import { splitStr } from '@/api/common'

// 商城订单 - 更新课程提现（退佣金）
export function teacherCashRecordUpdate(params) {
  return request({
    url: config.BaseUrl + '/teacherCashRecord/update/',
    method: 'post',
    data: params
  })
}

// 圣爵菲斯酒店-圣爵菲斯酒店
export function findCashRecordList(params) {
  return request({
    url: config.BaseUrl + '/findCashRecordList',
    method: 'get',
    params
  })
}

// /cashRemarksRecord/findCashRemarksRecordList
// 查看所有备注
export function storeRemarkList(params) {
  return request({
    url: config.BaseUrl + '/cashRemarksRecord/findCashRemarksRecordList',
    method: 'get',
    params
  })
}

// 新增备注 uid vipOrderId remark
export function addStoreRemark(params) {
  return request({
    url: config.BaseUrl + '/vipOrder/add/remark',
    method: 'post',
    data: params
  })
}

// 分页查询订单备注记录 vipOrderId
export function getStoreRemarkPage(params) {
  return request({
    url: config.BaseUrl + '/vipOrder/remark/page',
    method: 'get',
    params: splitStr(params)
  })
}

// 分页查询商品订单备注记录 /goodsOrderRemarks/query/page
export function getGoodsRemarkPage(params) {
  return request({
    url: config.BaseUrl + '/goodsOrderRemarks/query/page',
    method: 'get',
    params: splitStr(params)
  })
}

// 新增备注 goodsOrderId remark
export function addGoodsRemark(params) {
  return request({
    url: config.BaseUrl + '/goodsOrderRemarks/add',
    method: 'post',
    data: params
  })
}

// 分页查询商品订单备注记录 /goodsOrderRemarks/query/page
export function getGoodsAddress(params) {
  return request({
    url: config.BaseUrl + '/address/query/page',
    method: 'get',
    params: splitStr(params)
  })
}
